using MediatR;
using ProduceBasicData.Api.DTO;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Material.MaterialType
{
    /// <summary>
    /// 物料类型查询命令类
    /// </summary>
    public class GetMaterialTypeCommand : IRequest<ApiResult<List<MaterialTypeDTO>>>
    {
        /// <summary>
        /// 是否只获取启用的类型
        /// </summary>
        public bool OnlyEnabled { get; set; } = true;
    }
}
